home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Graphics 2D / TubeTest / ReadMe < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.0 KB  |  35 lines  |  [TEXT/ttxt]

  1. Read Me About...TubeTest
  2. date 08/2000
  3.  
  4. The TubeTest program is a simple demonstration of how to use the Palette Manager in a color program.  It has a special color palette that is associated with the main window.  The colors are animated using the Palette Manager to give a flowing tube effect.  The program is very simple, and the Palette Manager and drawing parts are put in separate subroutines to make it easier to figure out what is happening.
  5.  
  6. Best run in 256 color mode.
  7.  
  8. Building the Code
  9. This project was built and tested on CodeWarrior 2.1 using CarbonLib 1.1a3.  Since this is a Carbon app, the "Carbon Support" folder of the CarbonSDK should be in the same folder as the CodeWarrior IDE.  If this is not the case, the CarbonLib library will have to be re-added to the project.  In addition, the CarbonLib extension needs to be in the extension folder.  The CarbonSDK (which contains the library and the extension) can be found on Apple's website:  http://developer.apple.com/sdk/
  10.  
  11. Restrictions
  12. Nearly every sample requires more memory than the 384KB CodeWarrior sets as the default heap size.  If for some reason the memory has been reset to the default (either through converting the project or whatever) the memory should be reset to 1000 - 2000KB (depending on the application).  This can be achieved by going to the projects settings (Edit Menu->C-PPC Settings... under CodeWarrior 2.1) and selecting the "PPC Target" under the "Target" tab.
  13.  
  14. Other Code Notes
  15. This sample used to be a "non-Carbon" sample, but has been carbonized for demonstration purposes.  The "old" code has been left in (commented out) in order to compare and contrast the Carbon versus non-Carbon APIs.
  16.  
  17. Known Bugs
  18. No known bugs.
  19.  
  20. Possible Future Enhancements
  21. None at present.
  22.  
  23. Other Sources of Reference
  24. Additional sample code can be found at:
  25. http://developer.apple.com/samplecode/
  26. in addition, the Carbon API can be found at:
  27. http://developer.apple.com/techpubs/carbon/carbon.html
  28.  
  29. Version History
  30. See source for version history.
  31.  
  32. Author
  33. JM - Apple Developer Technical Support - dts@apple.com
  34.  
  35.